package com.wh.simpleredis.server;

import com.wh.simpleredis.manager.RedisManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: HuiEr
 * @Date: 2020/3/6 21:11
 * @Description
 */
@Service
public class RedisServer {
    @Autowired
    private RedisManager redisManager;

    public void addValue(String key, String value) {
        redisManager.addValue(key, value);
    }

    public String getValue(String key) {
        return redisManager.getValue(key);
    }

    public String produceStock() {
        return redisManager.produceStock();
    }

    public String produceStockRedisson() {
        return redisManager.produceStockRedisson();
    }

    public String saveduixiang() {
        return redisManager.saveduixiang();
    }

    public String getduixiang() {
        return redisManager.getduixiang();

    }
    }
